package com.dhnsoft;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.dhnsoft.mapper")
@ComponentScan(basePackages = {"com.dhnsoft.*"})//扫描别的包内的结构
@ServletComponentScan(basePackages = "com.dhnsoft.code")
public class OnlineMallApplication {

    public static void main(String[] args) {
        SpringApplication.run(OnlineMallApplication.class, args);
    }

}
